package top.hcode.hoj.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import top.hcode.hoj.pojo.entity.coll.CollQuestionOption;
import top.hcode.hoj.pojo.vo.coll.CollQuestionOptionVO;

import java.util.List;

/**
 * @author orangej
 * @since 2025-02-09
 */
@Mapper
@Repository
public interface CollQuestionOptionMapper extends BaseMapper<CollQuestionOption> {

    @Select("select * from coll_question_option where question_id = #{questionId} order by sort_order")
    List<CollQuestionOptionVO> queryOptionVO(String questionId);
}
